package com.apartmentManage.Dao;

import com.apartmentManage.entity.Room;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoomDao {
    /*批量添加*/
    int saveList(@Param("listRoom") List<Room> listRoom);

    /*查询*/
    List<Room> getAll();

    /*根据apartmentNo查询*/
    List<Room> getByApartmentNo(@Param("apartmentNo") Integer apartmentNo);

    /*删除所有*/
    int deleteByApartmentNo(@Param("apartmentNo") Integer apartmentNo);
}